package com.fz.entity;

import com.fz.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 存储访客信息
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Visitor extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 访问目的
     */
    private String type;

    /**
     * 时效要求
     */
    private String aging;

    /**
     * 访客数量
     */
    private Integer count;

    /**
     * 具体描述
     */
    private String content;

    /**
     * 申请用户ID（外键）
     */
    private Long userId;

    /**
     * 逻辑删除（1=删除）
     */
    private Integer isDeleted;

    /**
     * 状态（0=待审核，1=通过，2=驳回）
     */
    private Integer status;

    /**
     * 用户名
     */
    private String username;

    public Visitor(Long id, Integer status,Integer statu) {
        super(id);
        this.status = statu;
    }
    public Visitor(Long id,Integer status)
    {
        super(id);
        this.status=status;
    }
    public Visitor(String type,String aging,Integer count,String content,Long userId,String username){
        this.type=type;
        this.aging=aging;
        this.count=count;
        this.content=content;
        this.userId=userId;
        this.username=username;
    }
}
